package cn.huihe.demoai.controller;

import cn.huihe.demoai.common.Result;
import cn.huihe.demoai.common.SwaggerBearerAuth;
import cn.huihe.demoai.common.WebResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@SwaggerBearerAuth
@RestController
@RequestMapping("/v1/apis")
@Tag(name = "API List")
public class ApiListController {

    @GetMapping
    public ResponseEntity<Result<List<String>>> apis() {
        return WebResponse.ok(
                List.of(
                        "/v1/chat/text",
                        "/v1/chat/image",
                        "/v1/nlp/basicpipeline/{sentenceN}",
                        "/v1/regression/logistic",
                        "/v1/regression/logistic/predicted"
                )
        );
    }
}
